package cn.mugutu.finance.query;

import cn.mugutu.finance.domain.system.Menu;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class MenuQuery extends BaseQuery {

    public MenuQuery() {
        super(Menu.class);
    }

    private String name;

    @Override
    public void addWhere() {
        if (StringUtils.isNotBlank(name)) {
            addWhere(" o.name LIKE ? ", "%" + name + "%");
        }
    }


}
